// 模拟数据
// 用于开发和测试阶段的示例数据

// 模拟商品数据
export const mockProducts = [
  {
    id: '1',
    name: '皇家宠物湿粮 - 幼犬专用',
    description: '专为幼犬设计的营养湿粮，含有丰富的蛋白质和维生素，帮助幼犬健康成长。',
    price: 58.00,
    originalPrice: 68.00,
    images: [
      '/static/images/product1-1.jpg',
      '/static/images/product1-2.jpg',
      '/static/images/product1-3.jpg'
    ],
    category: '湿粮',
    brand: '皇家',
    stock: 100,
    sales: 256,
    rating: 4.8,
    specifications: [
      { name: '重量', options: ['400g', '800g', '1.2kg'] },
      { name: '口味', options: ['牛肉味', '鸡肉味', '鱼肉味'] }
    ],
    details: {
      ingredients: '新鲜牛肉、鸡肉、蔬菜、维生素A、维生素D3、维生素E',
      nutrition: '蛋白质≥8.0%，脂肪≥4.0%，粗纤维≤1.5%，水分≤82%',
      feeding: '幼犬每日2-3次，每次1-2罐，根据体重调整',
      storage: '开罐后请冷藏保存，24小时内食用完毕'
    }
  },
  {
    id: '2',
    name: '希尔思处方粮 - 成犬维护',
    description: '科学配方的成犬维护粮，均衡营养，维持成犬最佳体态和健康状况。',
    price: 128.00,
    originalPrice: 148.00,
    images: [
      '/static/images/product2-1.jpg',
      '/static/images/product2-2.jpg'
    ],
    category: '干粮',
    brand: '希尔思',
    stock: 80,
    sales: 189,
    rating: 4.7,
    specifications: [
      { name: '重量', options: ['2kg', '5kg', '10kg'] },
      { name: '适用', options: ['小型犬', '中型犬', '大型犬'] }
    ],
    details: {
      ingredients: '鸡肉粉、玉米、小麦、鸡脂肪、维生素矿物质预混料',
      nutrition: '蛋白质≥21%，脂肪≥13%，粗纤维≤3%，水分≤10%',
      feeding: '成犬每日1-2次，根据体重和活动量调整喂食量',
      storage: '请存放在阴凉干燥处，开袋后密封保存'
    }
  },
  {
    id: '3',
    name: '猫咪最爱 - 三文鱼湿粮',
    description: '选用新鲜三文鱼制作，口感鲜美，富含Omega-3，呵护猫咪毛发健康。',
    price: 45.00,
    originalPrice: 52.00,
    images: [
      '/static/images/product3-1.jpg',
      '/static/images/product3-2.jpg',
      '/static/images/product3-3.jpg'
    ],
    category: '湿粮',
    brand: '猫咪最爱',
    stock: 120,
    sales: 342,
    rating: 4.9,
    specifications: [
      { name: '重量', options: ['85g', '170g'] },
      { name: '口味', options: ['三文鱼', '金枪鱼', '鸡肉'] }
    ],
    details: {
      ingredients: '三文鱼、鸡肉、胡萝卜、豌豆、维生素E、牛磺酸',
      nutrition: '蛋白质≥10%，脂肪≥2%，粗纤维≤1%，水分≤78%',
      feeding: '成猫每日2-3罐，幼猫每日1-2罐',
      storage: '开罐后冷藏保存，48小时内食用完毕'
    }
  },
  {
    id: '4',
    name: '营养膏 - 多维营养补充',
    description: '高浓缩营养膏，快速补充维生素和矿物质，适合病后恢复和日常营养补充。',
    price: 35.00,
    originalPrice: 42.00,
    images: [
      '/static/images/product4-1.jpg'
    ],
    category: '营养品',
    brand: '宠物营养师',
    stock: 200,
    sales: 156,
    rating: 4.6,
    specifications: [
      { name: '规格', options: ['120g', '240g'] },
      { name: '类型', options: ['犬用', '猫用', '通用'] }
    ],
    details: {
      ingredients: '鱼油、维生素A、维生素D、维生素E、B族维生素、钙、磷',
      nutrition: '维生素A 5000IU/100g，维生素D3 500IU/100g',
      feeding: '每日1-2cm，直接喂食或拌入食物中',
      storage: '常温保存，开封后请拧紧盖子'
    }
  }
]

// 模拟地址数据
export const mockAddresses = [
  {
    id: '1',
    name: '张三',
    phone: '13800138000',
    province: '广东省',
    city: '深圳市',
    district: '南山区',
    detail: '科技园南区深南大道10000号',
    postalCode: '518000',
    isDefault: true,
    createTime: '2024-01-15T10:30:00.000Z'
  },
  {
    id: '2',
    name: '李四',
    phone: '13900139000',
    province: '北京市',
    city: '北京市',
    district: '朝阳区',
    detail: '建国门外大街1号国贸大厦',
    postalCode: '100020',
    isDefault: false,
    createTime: '2024-01-10T14:20:00.000Z'
  }
]

// 模拟订单数据
export const mockOrders = [
  {
    id: '1',
    orderNo: 'PB202401150001',
    status: 'delivered',
    createTime: '2024-01-15T10:30:00.000Z',
    payTime: '2024-01-15T10:32:00.000Z',
    shipTime: '2024-01-16T09:00:00.000Z',
    deliverTime: '2024-01-18T15:30:00.000Z',
    products: [
      {
        id: '1',
        name: '皇家宠物湿粮 - 幼犬专用',
        image: '/static/images/product1-1.jpg',
        price: 58.00,
        quantity: 2,
        specifications: '400g 牛肉味'
      }
    ],
    address: {
      name: '张三',
      phone: '13800138000',
      fullAddress: '广东省深圳市南山区科技园南区深南大道10000号'
    },
    payment: {
      method: 'wechat',
      amount: 116.00,
      freight: 0.00,
      discount: 0.00,
      total: 116.00
    },
    logistics: {
      company: '顺丰速运',
      trackingNo: 'SF1234567890',
      status: '已签收'
    }
  },
  {
    id: '2',
    orderNo: 'PB202401140001',
    status: 'shipped',
    createTime: '2024-01-14T16:20:00.000Z',
    payTime: '2024-01-14T16:22:00.000Z',
    shipTime: '2024-01-15T10:00:00.000Z',
    products: [
      {
        id: '3',
        name: '猫咪最爱 - 三文鱼湿粮',
        image: '/static/images/product3-1.jpg',
        price: 45.00,
        quantity: 3,
        specifications: '85g 三文鱼味'
      }
    ],
    address: {
      name: '张三',
      phone: '13800138000',
      fullAddress: '广东省深圳市南山区科技园南区深南大道10000号'
    },
    payment: {
      method: 'wechat',
      amount: 135.00,
      freight: 10.00,
      discount: 5.00,
      total: 140.00
    },
    logistics: {
      company: '中通快递',
      trackingNo: 'ZT9876543210',
      status: '运输中'
    }
  },
  {
    id: '3',
    orderNo: 'PB202401130001',
    status: 'paid',
    createTime: '2024-01-13T11:15:00.000Z',
    payTime: '2024-01-13T11:17:00.000Z',
    products: [
      {
        id: '4',
        name: '营养膏 - 多维营养补充',
        image: '/static/images/product4-1.jpg',
        price: 35.00,
        quantity: 1,
        specifications: '120g 犬用'
      }
    ],
    address: {
      name: '李四',
      phone: '13900139000',
      fullAddress: '北京市北京市朝阳区建国门外大街1号国贸大厦'
    },
    payment: {
      method: 'wechat',
      amount: 35.00,
      freight: 8.00,
      discount: 0.00,
      total: 43.00
    }
  }
]

// 模拟用户信息
export const mockUserInfo = {
  id: '1',
  nickname: '宠物爱好者',
  avatar: '/static/images/avatar.jpg',
  phone: '13800138000',
  email: 'user@example.com',
  gender: 1, // 0-未知 1-男 2-女
  birthday: '1990-01-01',
  city: '深圳市',
  registerTime: '2023-12-01T00:00:00.000Z',
  lastLoginTime: '2024-01-15T10:30:00.000Z'
}

// 订单状态映射
export const orderStatusMap = {
  'pending': '待付款',
  'paid': '已付款',
  'shipped': '已发货',
  'delivered': '已完成',
  'cancelled': '已取消'
}

// 支付方式映射
export const paymentMethodMap = {
  'wechat': '微信支付',
  'alipay': '支付宝',
  'balance': '余额支付'
}

// 物流公司映射
export const logisticsCompanyMap = {
  'sf': '顺丰速运',
  'zt': '中通快递',
  'yt': '圆通速递',
  'sto': '申通快递',
  'jd': '京东物流'
}

// 商品分类
export const productCategories = [
  { id: 'all', name: '全部' },
  { id: 'wet_food', name: '湿粮' },
  { id: 'dry_food', name: '干粮' },
  { id: 'snacks', name: '零食' },
  { id: 'nutrition', name: '营养品' },
  { id: 'toys', name: '玩具' },
  { id: 'supplies', name: '用品' }
]

// 省市区数据（简化版）
export const regionData = [
  {
    name: '北京市',
    cities: [
      {
        name: '北京市',
        districts: ['东城区', '西城区', '朝阳区', '丰台区', '石景山区', '海淀区', '门头沟区', '房山区', '通州区', '顺义区', '昌平区', '大兴区', '怀柔区', '平谷区', '密云区', '延庆区']
      }
    ]
  },
  {
    name: '广东省',
    cities: [
      {
        name: '广州市',
        districts: ['荔湾区', '越秀区', '海珠区', '天河区', '白云区', '黄埔区', '番禺区', '花都区', '南沙区', '从化区', '增城区']
      },
      {
        name: '深圳市',
        districts: ['罗湖区', '福田区', '南山区', '宝安区', '龙岗区', '盐田区', '龙华区', '坪山区', '光明区', '大鹏新区']
      },
      {
        name: '珠海市',
        districts: ['香洲区', '斗门区', '金湾区']
      }
    ]
  },
  {
    name: '上海市',
    cities: [
      {
        name: '上海市',
        districts: ['黄浦区', '徐汇区', '长宁区', '静安区', '普陀区', '虹口区', '杨浦区', '闵行区', '宝山区', '嘉定区', '浦东新区', '金山区', '松江区', '青浦区', '奉贤区', '崇明区']
      }
    ]
  }
]

// 导出所有模拟数据
export default {
  products: mockProducts,
  addresses: mockAddresses,
  orders: mockOrders,
  userInfo: mockUserInfo,
  orderStatusMap,
  paymentMethodMap,
  logisticsCompanyMap,
  productCategories,
  regionData
}